<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../css/app.css" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<h1 class="mui-title">用户登录</h1>
		</header>

		<div class="mui-content" id="login-vue">
			<form class="mui-input-group margin-t-15 padding-5">
				<div class="mui-input-row">
					<label>用户名</label>
					<input type="text" class="mui-input-clear" maxlength="20" placeholder="请输入用户名">
				</div>
				<div class="mui-input-row">
					<label>密码</label>
					<input type="password" class="mui-input-password" maxlength="20" placeholder="请输入密码">
				</div>
				<div class="mui-button-row margin-h-15 padding-w-15">
					<button type="button" class="mui-btn mui-btn-primary button-fill button-big" @click="login">登录</button>
				</div>

			</form>

			<div class="padding-w-15 margin-t-15 mui-button-row">
				<a class="mui-pull-left" @click="userRegister">用户注册</a>
				<a class="mui-pull-right" @click="forgetPassword">忘记密码</a>
			</div>
		</div>

		<script src="../js/mui.min.js"></script>
		<script type="text/javascript" src="../js/vue.min.js" ></script>
		<script type="text/javascript">
			mui.init({
				beforeback: function() {
					plus.runtime.quit();
				}
			});
			new Vue({
				el:"#login-vue",
				data:{},
				methods:{
					userRegister:function(){
						mui.openWindow("register.html","register.html");
					},
					forgetPassword:function(){
						mui.openWindow("forget.html","forget.html")
					},
					login:function(){
						mui.openWindow("tab-webview-main.html","tab-webview-main.html")
					}
				}
			})
		</script>
	</body>

</html>